﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class HomePanel : MonoBehaviour
{
    public static HomePanel Instance;

    public Button Button_Top_Settings;
    public Button Button_Play;
    public Button Button_BossDungeon; //怪物图鉴
    


    private void Awake()
    {
        Instance = this;
    }

    void Start()
    {
        EventTriggerListener.Get(Button_Top_Settings.gameObject, null).onClick = (GameObject go, object data) =>
        {
            SettingsPanel.Instance.Open();
        };

        EventTriggerListener.Get(Button_Play.gameObject, null).onClick = (GameObject go, object data) =>
        {
            
        };

        EventTriggerListener.Get(Button_BossDungeon.gameObject, null).onClick = (GameObject go, object data) =>
        {
            
        };
    }

    public void Open()
    {
        this.gameObject.SetActive(true);
    }

    public void Close()
    {
        this.gameObject.SetActive(false);
    }
}
